/**
 * @filename:Recharge 2023-4-24
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**   
 * @Description:TODO(用户充值实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_recharge")
@ApiModel(value="sn_recharge对象", description="用户充值表")
public class Recharge extends Model<Recharge> {

	private static final long serialVersionUID = 1682307777139819L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_real_name" , value = "姓名")
    private String user_real_name;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_caller" , value = "客服")
    private Integer user_caller;
    
    @TableField(value = "uid") 	
	@ApiModelProperty(name = "uid" , value = "用户")
    private Long uid;
    
    @TableField(value = "`order`") 
	@ApiModelProperty(name = "order" , value = "订单号")
    private String order;
    
    @TableField(value = "number") 	
	@ApiModelProperty(name = "number" , value = "金额")
    private Double number;
    
    @TableField(value = "balance") 	
	@ApiModelProperty(name = "balance" , value = "账户余额")
    private Double balance;
    
    @TableField(value = "fee") 	
	@ApiModelProperty(name = "fee" , value = "手续费")
    private Double fee;
    
    @TableField(value = "status") 	
	@ApiModelProperty(name = "status" , value = "充值状态")
    private Integer status;
    
    @TableField(value = "type") 	
	@ApiModelProperty(name = "type" , value = "接口类型")
    private Integer type;
    
    @TableField(value = "pay_type") 	
	@ApiModelProperty(name = "pay_type" , value = "支付类型")
    private Integer pay_type;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "充值时间")
    private Date create_time;
    
    @TableField(value = "sure_time") 	
	@ApiModelProperty(name = "sure_time" , value = "用户确认时间")
    private Date sure_time;
    
    @TableField(value = "pay_time") 	
	@ApiModelProperty(name = "pay_time" , value = "回调时间")
    private Date pay_time;
    
    @TableField(value = "coupon") 	
	@ApiModelProperty(name = "coupon" , value = "好友现金券编号")
    private String coupon;
    
    @TableField(value = "coupon_amount") 	
	@ApiModelProperty(name = "coupon_amount" , value = "现金券编金额")
    private Double coupon_amount;
    
    @TableField(value = "from_amount") 	
	@ApiModelProperty(name = "from_amount" , value = "充值金额")
    private Double from_amount;
    
    @TableField(value = "currency") 	
	@ApiModelProperty(name = "currency" , value = "币种")
    private String currency;
    
    @TableField(value = "exchange") 	
	@ApiModelProperty(name = "exchange" , value = "汇率")
    private Double exchange;
    
    @TableField(value = "md5info") 	
	@ApiModelProperty(name = "md5info" , value = "加密")
    private String md5info;
    
    @TableField(value = "remark") 	
	@ApiModelProperty(name = "remark" , value = "备注")
    private String remark;
    
    @TableField(value = "agent") 	
	@ApiModelProperty(name = "agent" , value = "代理ID")
    private Long agent;
    
    @TableField(value = "staff") 	
	@ApiModelProperty(name = "staff" , value = "员工id")
    private Long staff;
    
    @TableField(value = "mother") 	
	@ApiModelProperty(name = "mother" , value = "母账户id")
    private Long mother;
    
    @TableField(value = "from_address") 	
	@ApiModelProperty(name = "from_address" , value = "客户账户/地址")
    private String from_address;
    
    @TableField(value = "to_address") 	
	@ApiModelProperty(name = "to_address" , value = "收款账户/地址")
    private String to_address;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_name" , value = "用户昵称")
    private String user_name;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_phone" , value = "电话")
    private String user_phone;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
